package com.example.handpose_front.utils.OKHttpUtil;

import com.example.handpose_front.dto.DataResponse;
import com.google.gson.Gson;

public class ResponseBody {
    public static DataResponse getResponseBody(String response){
        Gson gson = new Gson();
        // 将String转化为Java实体
        return gson.fromJson(response, DataResponse.class);
    }
}
